package com.hjt.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjt.common.utils.PageUtils;
import com.hjt.gulimall.product.entity.SkuInfoEntity;
import com.hjt.gulimall.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author huangjingtai
 * @email 970075985@qq.com
 * @date 2021-09-08 16:15:18
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCondition(Map<String, Object> params);

    List<SkuInfoEntity> listBySpuId(Long spuId);

    // 查询sku详细信息，用于商品展示
    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;
}

